package com.patterns.agent.dynamicagent;

/**
 * @Author Tanyu
 * @Date 2020/6/2 11:58
 * @Description
 * @Version 1.0
 */
public class ProxyDemo {

  public static void main(String[] args) {
    IDog dog = new GunDog();
    IDog proxy = (IDog) MyProxyFactory.getProxy(dog);
    proxy.run();
  }
}
